using System;

namespace Silvery.Command
{
    /// <summary>
    /// 游戏指令事件数据数据
    /// </summary>
    public class GameCommandEventArgs : EventArgs
    {
        /// <summary>
        /// 执行者是一个IGameCommand
        /// </summary>
        public IGameCommand Extractor { get; internal set; }
        /// <summary>
        /// 参数会将指令提取，将指令空格后面的所有作为这个数据传出
        /// </summary>
        public string Parameter { get; internal set; }
    }
    /// <summary>
    /// 执行指令的回调
    /// </summary>
    /// <param name="s"></param>
    /// <param name="e"></param>
    public delegate void CommandEventHandler(IGameCommandBox s, GameCommandEventArgs e);
}
